<br><br>
<div class="btn-group" role="group">
    <a href="/post" class="btn btn-primary btn-lg requireLogin"><i class="fa fa-plus-circle fa-white"></i> <%= t('dashboard._header.share_work') %></a>
    <div class="btn-group" role="group">
      <a class="btn btn-primary btn-lg dropdown-toggle fa-white" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
        <span class="caret"></span>
        <span class="sr-only"><%= translation('dashboard._header.dropdown.toggle_dropdown') %></span>
      </a>
      <div class="dropdown-menu dropdown-menu-right mt-2">
          <%= create_nav_dropdown_item("post?n=15322&title=How%20to%20...&tags=activity:new,draft","dashboard._header.dropdown.share_activity") %>
          <%= create_nav_dropdown_item("post","dashboard._header.dropdown.share_research_note") %>
          <%= create_nav_dropdown_item("questions/new?tags=question:general","dashboard._header.dropdown.ask_question") %>
          <%= create_nav_dropdown_item("post?template=event&tags=event","dashboard._header.dropdown.post_event") %>
          <div class="dropdown-divider"></div>
          <%= create_nav_dropdown_item("post?tags=blog-submission","dashboard._header.dropdown.tell_story_blog") %>
      </div>
    </div>
  </div>
  
<% if current_user %>
  <% if current_user.has_power_tag("lat") && current_user.has_power_tag("lon")%>
    <div style="margin: 2.2rem 0;">
      <a class="btn btn-lg btn-outline-secondary" href="https://publiclab.org/map/#<%= current_user.get_value_of_power_tag("zoom").to_i%>/<%=current_user.lat.to_f %>/<%=current_user.lon.to_f %>">
      <i class="fa fa-map-marker" style="color:#c40;"></i> <%= translation('dashboard_v2.sidebar.nearby_activity') %></a>
    </div>
  <%else %>
    <div style="margin: 2.2rem 0;">
      <a class="btn btn-lg btn-outline-secondary blurred-location-input" submit_to="/profile/tags/create/<%= current_user.uid %>">
        <i class="fa fa-map-marker" style="color:#c40;"></i>
        <%= translation('dashboard_v2.sidebar.add_location') %> 
      </a>
      <p style="font-size: smaller; margin: 0.3rem 0;">
      <%= translation('dashboard_v2.sidebar.location_work') %><br>
      <a href="https://publiclab.org/location-privacy" target="_blank">
        <%= translation('dashboard_v2.sidebar.location_privacy') %> »
      </a>
      </p>
    </div>
  <% end %>
<% end %>

<ul class="nav nav-tabs" style="margin-top:2.2rem;">
  <li class="nav-item" style="width:49%;">
    <a class="nav-link active lists-tab" href="#ask-question" data-toggle="tab">
      <span class="d-md-none"><i class="fa fa-comment"></i></span>
      <span class="d-none d-md-inline"><%=translation('dashboard._header.dropdown.ask_question')%></span>
    </a>
  </li>
  <li class="nav-item" style="width:49%;">
    <a class="nav-link wikis-tab" href="#wiki" data-toggle="tab">
      <span class="d-md-none"><i class="fa fa-book"></i></span>
      <span class="d-none d-md-inline"><%= translation('dashboard._sidebar.wiki') %></span>
    </a>
  </li>
</ul>

<div class="tab-content">
  <div class="tab-pane" id="wiki">
    <%= render partial: "dashboard/wiki", locals: { wikis: @wikis } %>
  </div>

  <div class="tab-pane active" id="ask-question">
    <% cache('feature_dashboard-sidebar', skip_digest: true) do %>
      <%= feature('dashboard-sidebar') %>
    <% end %>
    <!-- Twitter follow button, options can be adjusted here: https://publish.twitter.com/# -->
    <div class="social-media-btn">
      <a href="https://twitter.com/PublicLab?ref_src=twsrc%5Etfw" class="twitter-follow-button" data-size="large" data-show-count="false"><%= translation('dashboard._sidebar.follow_publiclab') %></a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
    </div>
    <!-- Facebook like button, options can be adjusted here: https://developers.facebook.com/docs/plugins/like-button/  -->
    <div class="social-media-btn">  
      <div class="fb-like" data-href="https://www.facebook.com/PublicLab/" data-layout="button_count" data-action="like" data-size="large" data-show-faces="false" data-share="false"></div>
    </div>
  </div>
</div>
<%= render partial: 'tag/location' %>
